package com.xym.manage.pojo;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tb_item")
public class Item extends BasePojo {
	 /* `id` bigint(10) NOT NULL AUTO_INCREMENT COMMENT '商品id，同时也是商品编号',
	  `title` varchar(100) NOT NULL COMMENT '商品标题',
	  `sell_point` varchar(150) DEFAULT NULL COMMENT '商品卖点',
	  `price` bigint(20) NOT NULL COMMENT '商品价格，单位为：分',
	  `num` int(10) NOT NULL COMMENT '库存数量',
	  `barcode` varchar(30) DEFAULT NULL COMMENT '商品条形码',
	  `image` varchar(500) DEFAULT NULL COMMENT '商品图片',
	  `cname` varchar(20) DEFAULT NULL COMMENT '分类名称',
	  `cid` bigint(10) NOT NULL COMMENT '所属类目，叶子类目',
	  `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '商品状态，1-正常，2-下架，3-删除',*/
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String title;  //商品标题

    private String sellPoint;  //商品卖点

    private Long price; //

    private Integer num;  //库存数量

    private String barcode;  //条形码

    private String image;  //图片

    private Long cid;  //商品类目
    
    private String cname; //分类名称

    private Integer status;//商品状态，1-正常，2-下架，3-删除
    
    public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSellPoint() {
        return sellPoint;
    }

    public void setSellPoint(String sellPoint) {
        this.sellPoint = sellPoint;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
	public String toString() {
		return "Item [id=" + id + ", title=" + title + ", sellPoint="
				+ sellPoint + ", price=" + price + ", num=" + num
				+ ", barcode=" + barcode + ", image=" + image + ", cid=" + cid
				+ ", cname=" + cname + ", status=" + status + "]";
	}

}
